import 'package:flutter_test/flutter_test.dart';
import 'package:flutter_quick_video_encoder/flutter_quick_video_encoder.dart';
import 'package:flutter_quick_video_encoder/flutter_quick_video_encoder_platform_interface.dart';
import 'package:flutter_quick_video_encoder/flutter_quick_video_encoder_method_channel.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';

class MockFlutterQuickVideoEncoderPlatform
    with MockPlatformInterfaceMixin
    implements FlutterQuickVideoEncoderPlatform {

  @override
  Future<String?> getPlatformVersion() => Future.value('42');
}

void main() {
  final FlutterQuickVideoEncoderPlatform initialPlatform = FlutterQuickVideoEncoderPlatform.instance;

  test('$MethodChannelFlutterQuickVideoEncoder is the default instance', () {
    expect(initialPlatform, isInstanceOf<MethodChannelFlutterQuickVideoEncoder>());
  });

  test('getPlatformVersion', () async {
    FlutterQuickVideoEncoder flutterQuickVideoEncoderPlugin = FlutterQuickVideoEncoder();
    MockFlutterQuickVideoEncoderPlatform fakePlatform = MockFlutterQuickVideoEncoderPlatform();
    FlutterQuickVideoEncoderPlatform.instance = fakePlatform;

    expect(await flutterQuickVideoEncoderPlugin.getPlatformVersion(), '42');
  });
}
